package com.hw.dao;

import com.hw.pojo.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @InterfaceName: UserDao
 * @Description: 用户dao层
 * @Author: vie0134
 * @Date: 2020-12-14 19:16
 * @Version: 1.0
 **/
@Repository
public interface UserDao {
    List<Users> findAllUser(@Param("username") String username, @Param("status") String status);
    Users findUserById(Integer id);
    Users findUserByUsername(String username);
    Integer findUserIdByUsername(String username);
    void addUser(Users users);
    void updateUser(Users users);
    void deleteUserById(@Param("id") Integer id);
    void deleteUserByIds(@Param("ids") List<String> ids);

}
